package cloudoer.blog.dao;

import cloudoer.blog.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ArticleMapper {
    int deleteByPrimaryKey(String id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(String id);

    List<Article> selectAll();

    List<Article> selectCondition(@Param("map")Map map, @Param("orderBy")String orderBy);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
}